package com.example.leetcode.slidingwindow;

import com.example.leetcode.slidingwindow.common.SlidingWindowUtils;

class Solution209 {
    public int minSubArrayLen(int target, int[] nums) {
        return SlidingWindowUtils.minSubArrayLen(target, nums);
    }
}

public class leetcode209 {
    public static void main(String[] args) {
        Solution209 solution209 = new Solution209();
        int[] nums = {2,3,1,2,4,3};
        int[] nums1 = {1,4,4};
        int[] nums2= {1,1,1,1,1,1,1,1};
        System.out.println(solution209.minSubArrayLen(7, nums));
        System.out.println(solution209.minSubArrayLen(4, nums1));
        System.out.println(solution209.minSubArrayLen(11, nums2));
    }
}
